home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 1
/
Merciful - Disc 1.iso
/
software
/
r
/
rexx_plus_compiler
/
rexxpluscompiler2.dms
/
in.adf
/
RexxPlPlot
/
Examples
/
examples.zoo
/
example05.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-03-17
|
382 b
|
22 lines
/* Test of drawing a histogram */
#include <math.h>
main()
{
int i;
float data[2048];
/* Fill up data points */
for (i=0; i<2048; i++)
data[i]=sin(0.01*(i+1));
plstar(1,1);
plhist(2048,data,-1.1,1.1,44,0);
pllab("\\frValue","\\frFrequency",
"\\frPLPLOT Example 5 - Probability function of Oscillator");
plend();
}